package org.sundatagroup.aurora.show.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.sundatagroup.aurora.core.config.AbstractRegister;
import org.sundatagroup.aurora.core.service.querier.QuerierCenter;
import org.sundatagroup.aurora.show.service.AssetService;

/**
 * <p>展示区的消息、通用服务注册者
 * </p>
 * 
 * @author Zdream
 * @date 2018-05-30
 * @since 0.2.0
 */
@Component
public class ShowRegister extends AbstractRegister implements IShow {

	@Autowired
	AssetService as;
	
	@Autowired
	QuerierCenter qrCenter;

	@Override
	public void doRegister() {
		qrCenter.permit(ID, "/query/module", "/query/project", "/query/asset");
		qrCenter.register(as);
	}

}
